﻿using WYJ.SDK.Core;

namespace FileWatcher
{
    public static partial class Extensions
    {
        public static bool Log(this FileSystemEventArgs e, string message)
        {
            bool isFloder = Directory.Exists(e.FullPath);
#if DEBUG
            string name = isFloder ? "文件夹" : "文件";
            Console.WriteLine($"{message} {name}: {e.FullPath}");
#endif
            return isFloder;
        }

    }
}